package com.ad_hccm.service.impl.GeneralInformation;

import com.ad_hccm.dao.GeneralInformation.DrinkDao;
import com.ad_hccm.domain.GeneralInformation.Drink;
import com.ad_hccm.service.GeneralInformation.DrinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO 饮酒ServiceImpl
 */
@Service
public class DrinkServiceImpl implements DrinkService {
    @Autowired
    private DrinkDao drinkDao;

    @Override
    public boolean save(Drink drink) {
        return drinkDao.save(drink);
    }

    @Override
    public boolean update(Drink drink) {
        return drinkDao.update(drink);
    }

    @Override
    public Drink getById(String id) {
        return drinkDao.getById(id);
    }

    @Override
    public List<Drink> getAll() {
        return drinkDao.getAll();
    }
}
